﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TrackingAssist.WebTrends
{
    public class FilterFactory
    {
        public static IFilter CreateInstance(FilterType filter)
        {
            switch (filter)
            {
                case FilterType.Secion:
                    return new SectionFilter();
                case FilterType.Location:
                    return new LocationFilter();
                default:
                    throw new NotSupportedException();
            }
        }
    }
}
